// pages/Home/Home.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgUrls: [{
        img: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1544868705755&di=3cf20c36b4706635393b15dc3b51c024&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fimgad%2Fpic%2Fitem%2Fd53f8794a4c27d1e163d0dfe10d5ad6eddc438f4.jpg'
      }, {
        img: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1544868705755&di=3cf20c36b4706635393b15dc3b51c024&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fimgad%2Fpic%2Fitem%2Fd53f8794a4c27d1e163d0dfe10d5ad6eddc438f4.jpg'
      },{
        img: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1544868705755&di=3cf20c36b4706635393b15dc3b51c024&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fimgad%2Fpic%2Fitem%2Fd53f8794a4c27d1e163d0dfe10d5ad6eddc438f4.jpg'
      }
    ],
    Teacher:[
      {
        img:'http://web.tedu.cn/img/201711/1511933406399.jpg',
        name:'ROY'
      },
      {
        img: 'http://web.tedu.cn/img/201711/1511933406399.jpg',
        name: 'ROY'
      },
      {
        img: 'http://web.tedu.cn/img/201711/1511933406399.jpg',
        name: 'ROY'
      },
      {
        img: 'http://web.tedu.cn/img/201711/1511933406399.jpg',
        name: 'ROY'
      },
      {
        img: 'http://web.tedu.cn/img/201711/1511933406399.jpg',
        name: 'ROY'
      },
      {
        img: 'http://web.tedu.cn/img/201711/1511933406399.jpg',
        name: 'ROY'
      }
    ],
    Article:[
      {
        title:'今日股市最新行情详细分析',
        date:'2018/12/27'
      },
      {
        title: '今日股市最新行情详细分析',
        date: '2018/12/27'
      },
      {
        title: '今日股市最新行情详细分析',
        date: '2018/12/27'
      },
      {
        title: '今日股市最新行情详细分析',
        date: '2018/12/27'
      },
      {
        title: '今日股市最新行情详细分析',
        date: '2018/12/27'
      }
    ],
    Curriculum:[
      {
        img:'https://img4.mukewang.com/574669dc0001993606000338-240-135.jpg'
      },
      {
        img: 'https://img4.mukewang.com/574669dc0001993606000338-240-135.jpg'
      },
      {
        img: 'https://img4.mukewang.com/574669dc0001993606000338-240-135.jpg'
      },
      {
        img: 'https://img4.mukewang.com/574669dc0001993606000338-240-135.jpg'
      },
      {
        img: 'https://img4.mukewang.com/574669dc0001993606000338-240-135.jpg'
      }
    ],
    imageWidth:0,
    interval: 2000,
    circular:true,
    duration: 500,
    search:''
  },
  //图片宽度自适应
  imageLoad:function(){
    this.setData({
      imageWidth: wx.getSystemInfoSync().windowWidth
    })
  },
  //搜索方法
  Search:function(){
    
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})